package com.jboost.modules.app.service.strategry.liangxin;

import com.google.common.collect.Maps;
import com.jboost.modules.app.constant.Strategy;
import com.jboost.modules.system.mapper.HsMaterialNeedMapper;
import com.jboost.modules.system.mapper.LxPriceDataMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.http.HttpHeaders;
import org.springframework.stereotype.Service;

import java.util.HashMap;

@Service
@Slf4j
public abstract class AbstractLxMateria<T, V> implements Strategy<T,V> {

    @Autowired
    StringRedisTemplate redisTemplate;
    @Autowired
    LxPriceDataMapper lxPriceDataMapper;

    public HttpHeaders getJdyHeaders(){
        HttpHeaders jdyHeaders = new HttpHeaders();
        jdyHeaders.set("Authorization","Bearer "+ "p3tR5libgldjiPIjD6OoyvQIU3nRxJGL");
        return jdyHeaders;
    }
    public String getAppId(){
        return "64760f89d660d20008f28161";
    }





    public HashMap<String, Object> getParam() {
        HashMap<String, Object> paramMap = Maps.newHashMap();
        paramMap.put("app_id",getAppId());
        paramMap.put("entry_id",getFormId());
        return paramMap;
    };
}
